<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
function formmabang()
{
	$('#newexcelform').modal('show');
}
function doImportcsv()
{
	var Importtyps = $("#Importtyps").val();
	if(Importtyps==0)
	{
		alert("请选择导入类型!");
		return;
	}
	$("#newexcelform").hide();
	$("#excelattributeform").submit();
}
</script>
<title>货运方式设置</title>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent">
<div class="pageheader notab">
  <h1 class="pagetitle">货运方式设置</h1>
  <span class="pagedesc"></span>
  <div class="menulist">
   <ul class="profile_summary">
   
   
    {{if $managers || in_array('140',$showpower)}}  <li {{if $status==""}} class="current"{{/if}}> <a href="/order/addexpresstype"><span>添加货运方式</span></a></li>
    <li {{if $status==""}} class="current"{{/if}}> <a href="javascript:void(0)" onclick="formmabang()"><span>导入货运列表</span></a></li>
    {{/if}}
    
   </ul>
  </div>
  
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
<div id="basicform" class="subcontent">
   <!--搜索栏-->
          <div>
          
   	
         <div style="clear: both"></div>
         <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
   </div>
      
   
    <!--搜索栏结束-->
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
<thead>
  <tr class="lbbt">
    <td width="5%"  bgcolor="#FEFFF1"><a onClick="allSelect('ppid[]')">全选</a></td>
    <td width="5%"  bgcolor="#FEFFF1">编号</td>
    <td  bgcolor="#FEFFF1">名称</td>
    <td  bgcolor="#FEFFF1">状态</td>
    <td width="15%"  bgcolor="#FEFFF1">操作时间</td>
    <td  bgcolor="#FEFFF1">操作者</td>
    <td  bgcolor="#FEFFF1">操作</td>

    
  </tr>
</thead>
<tbody >

{{foreach from=$orderlist item=li key=key}}
  <tr>
    <td><input name="ppid[]" type="checkbox" class="none" id="ppid[]" value="{{$li.orderId}}" /></td>
    <td valign="middle" style="position:relative;">
     {{$li.id}}
     </td>
    <td valign="middle">{{$li.name}}</td>
     <td valign="middle">{{if $li.status==0}}启用{{else}}停用{{/if}}</td>
    
    <td style="position:relative;">{{$li.opertime}}</td>
    <td valign="middle">{{$li.oper}}</td>
    <td valign="middle"><a href="/order/addexpresstype?id={{$li.id}}">编辑</a> ｜ <a onClick="return confirm('确认删除？')" href="/order/ajaxbutton?op=delexpress&id={{$li.id}}">删除</a> ｜{{if $li.status==0}}  <a href="/order/ajaxbutton?op=stexpresstype&id={{$li.id}}&type=1">停用</a>{{else}}  <a href="/order/ajaxbutton?op=stexpresstype&id={{$li.id}}&type=0"><font color=red>启用</font></a>{{/if}}</td>
   
  
   
  </tr>
   
{{/foreach}}
</tbody>

</table>
  <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
</div>
</div>

  
 <!-- 模态框（Modal）导入Excel -->
  <form action="/order/ajaxbutton?op=doImportexpress" enctype="multipart/form-data" method="post" name="excelattributeform" id="excelattributeform">
        <div class="modal fade" id="newexcelform" tabindex="-1" role="dialog" aria-labelledby="snewexcelform" aria-hidden="true">
            <div class="modal-dialog" style="width:740px;">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"
                                aria-hidden="true">× </button>
                        <h4 class="modal-title"><span id="order_mailno">导入Excel文档</span></h4>
                    </div>
                    <div class="modal-body">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="100">导入Excel表： </td>
                                <td align="left">
                                    <input  type="file" name="file_excel" />
                                </td>
                            </tr>
                          
                            <tr>
                                <td width="100">注意： </td>
                                <td align="left">
                                    文档格式： 导入新表格 <a href="/fuman/Exceltemplate/zhongyou.xlsx"><font color="#0000FF">下载模板</font></a>
                                </td>
                            </tr>
                        </table>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default"
                                    data-dismiss="modal" style="display:none"> 关闭 </button>
                            <button type="button" class="btn btn-primary"  onclick="doImportcsv()">导入</button>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal-dialog -->
            </div>
        </div>
    </form>
    <!-- /.modal -->

</body>
</html>